package com.yx.system.dao;

import com.yx.common.utils.Query;
import com.yx.system.entity.TdBook;
import com.yx.system.entity.TdOnlinePayLog;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 在线支付记录
 */
@Mapper
@Repository
public interface TdOnlinePayLogMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TdOnlinePayLog record);

    int insertSelective(TdOnlinePayLog record);

    TdOnlinePayLog selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TdOnlinePayLog record);

    int updateByPrimaryKey(TdOnlinePayLog record);

    /**
     * 查询书籍列表
     */
    List<TdOnlinePayLog> queryList(Map<String, Object> map);

    /**
     * 查询总数
     */
    int queryTotal(Map<String, Object> map);

    TdOnlinePayLog queryByBillNo(String billNo);

    List<TdOnlinePayLog> queryList1(Query query);

    int queryTotal1(Query query);
}